(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";

(function () {
    var template = function template(self) {
        return self.innerHTML;
    };

    function handleAttribute(self) {
        if (!self.hasAttribute("disabled")) {
            var isAdd = self.auiToggleAttribute("open", "open");
        }
    }

    function onClicked(self) {
        return function (e) {
            handleAttribute(self);
        };
    }

    function onDocumentClicked(self) {
        return function (e) {
            if (!self.contains(e.target)) {
                self.removeAttribute("open");
            }
        };
    }

    function enableTypePopup(self) {
        document.addEventListener("click", self.$onDocumentClicked);
    }

    function disableTypePopup(self) {
        document.removeEventListener("click", self.$onDocumentClicked);
    }

    document.auiDefineElement('aux-details', {
        template: template,
        attached: function attached(self) {
            self.$locked = false;
            self.$onClicked = onClicked(self);
            self.$onDocumentClicked = onDocumentClicked(self);
            self.$ele.summary = self.auiFindSelector("> aux-summary");
            if (self.$ele.summary && self.$ele.summary !== null) {
                self.$ele.summary.addEventListener("click", self.$onClicked);
            }
            if (self.getAttribute("type") === "popup") {
                enableTypePopup(self);
            }
        },
        attrChanged: function attrChanged(self, name, oldval, newval) {
            if (name === "type" && newval === "popup") {
                enableTypePopup(self);
            }
            if (name === "type" && newval !== "popup") {
                disableTypePopup(self);
            }
        }
    });
})();
},{}]},{},[1])